Don't write empty URLs to LMX format.
authorrobertl <robertl>
Fri, 4 Apr 2008 15:58:21 +0000 (15:58 +0000)
committerrobertl <robertl>
Fri, 4 Apr 2008 15:58:21 +0000 (15:58 +0000)
lmx.c

diff --git a/lmx.c b/lmx.c
index 42364b31d711d3909d37e05691386737d1cfcc17..5082a0cc06ddcceffe2e864c8653b00fe9520471 100644 (file)
--- a/lmx.c
+++ b/lmx.c
@@ -90,7 +90,7 @@ lmx_print(const waypoint *wpt)
        }
        gbfprintf(ofd, "        </lm:coordinates>\n");
 
-       if (wpt->url) {
+       if (wpt->url && wpt->url[0]) {
                gbfprintf(ofd, "        <lm:mediaLink>\n");
                if (wpt->url_link_text)
                        lmx_write_xml(5,"lm:name", wpt->url_link_text);